
const { dbMgr } = require('../config')

exports.main = async (event, context) => {
  const { data } = event;
  const { JobId } = data;
  if (!JobId) {
    return '缺少任务id'
  }

  let result = await dbMgr.database.migrateStatus(JobId)
  console.log(result) // 打印迁移状态
  return result
}
